import { Application } from 'egg';

export default (app: Application) => {
    const { STRING, CHAR, INTEGER } = app.Sequelize;
    const model = app.model.define('Anexcuse', {
        anexcuse_id: { type: STRING(32), primaryKey: true },//主键
        user_id: STRING(32),//用户id
        anexcuse_time: INTEGER(11),//禁言剩余时间
        created_by: STRING(32),
        updated_by: STRING(32),
        is_delete: CHAR(1),
    }, { tableName: 't_anexcuse' });
    return model;
};

export class Anexcuse {
    anexcuse_id: string;
    user_id: string;
    anexcuse_time: string;
    created_by: string;
    updated_by: string;
    is_delete: string;
}
